package com.etc.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class FBI1 implements InvocationHandler {
	IMan target;

	public FBI1(IMan target) {
		this.target = target;
	}

	public Object invoke(Object arg0, Method arg1, Object[] arg2) throws Throwable {
		Object result = null;
		String methodName = arg1.getName();
		if ("mm".equals(methodName)) {
			System.out.println("FBI�Ѿ��ɹ���ֹ��ִ��" + methodName + "���");
		} else {
			System.out.println("FBI��������׼��ִ��" + methodName + "���");
			result = arg1.invoke(target, arg2);
			System.out.println("FBI�������Ѿ����" + methodName + "���ִ�У�");
		}
		return result;
	}
}
